/*
 * graph2D
 * Copyright (c) 2009 Shun Moriya <shun@mnu.sakura.ne.jp>
 *
 * The MIT License
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
 * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
 * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
 * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

#if !defined(___GRAPH2D_TEXTURE2D_H___)
#define ___GRAPH2D_TEXTURE2D_H___

#if 0
#include "../common.h"
#include "../graphicDevice.h"
#include "../vector2.h"
#include <string>

namespace Graph2D
{
	class Texture2D
	{
		GLuint name;
		unsigned int width, height;
		GLfloat maxS, maxT;

		Vector2 dimensions;
		int alignment;

		wchar_t* pwcMessage;
		unsigned int messageDisplayListId;
		int messageDisplayListSize;
		INT* characterWidth;
		INT characterHeight;

	public:
		Texture2D();
		//Texture2D();
		explicit Texture2D(const std::string& string, const Vector2& dimensions, const int alignment, const LOGFONT fontName);
		explicit Texture2D(const wchar_t* string, const Vector2& dimensions, const int alignment, const LOGFONT fontName);
		~Texture2D();

		void drawAtPoint(const Vector2& point);

		GLuint getName() const
		{
			return name;
		}

		Vector2 getSize() const
		{
			return Vector2(static_cast<float>(width), static_cast<float>(height));
		}

		Vector2 getTextureSize() const
		{
			return dimensions;
		}

		Vector2 getMaxSize() const
		{
			return Vector2(maxS, maxT);
		}

	private:
		void initialize();
		void create(const wchar_t* string, const Vector2& dimensions, const int alignment, const LOGFONT fontName);
	};
}
#endif
#endif
